#ifndef LAN2DELEGATE_H
#define LAN2DELEGATE_H

#include <QObject>
#include <QStyledItemDelegate>
#include <QMouseEvent>
#include <QTextEdit>
#include<QDebug>
#include "lan2core.h"
LAN2STA
class Lan2CalDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    Lan2CalDelegate(QObject *parent = nullptr);

    // QObject interface


    // QAbstractItemDelegate interface
public:
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
//    QTextEdit* te=nullptr;

//signals:
//    void sign_data(QStringList);
//public slots:
//    void slot_says()
//    {
////        qDebug()<<te->toPlainText()<<"Txt";
//        QStringList ms=te->toPlainText().split(" ");
//        if(ms.size()==5){
//        emit sign_data(ms);
//        }
//    }
};


LAN2END

#endif // LAN2DELEGATE_H
